import { Injectable, Pipe ,PipeTransform } from '@angular/core';

@Pipe({
  name: 'repairState'
})
@Injectable()
export class RepairStateTrans implements PipeTransform{
  constructor(){}

  transform(param) {
        if(param){
            param = param+'';
            if(param=='0'){
                return '未修复';
            }
            if(param=='1'){
                return '已修复';
            }
        }else{
            return '未查看';
        }
    }
}
